﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using StoreOnlineEntity.Attributes;

namespace StoreOnlineEntity.Entitys
{
    class Feedback
    {
        private long id;

        [ColumnAttribute(DataType = "bigint", NotNull = true, PrimaryKey = true)]
        public long ID
        {
            get { return id; }
            set { id = value; }
        }

        private string userName;

        [ColumnAttribute(DataType = "text", NotNull = true, Length = 50)]
        public string UserName
        {
            get { return userName; }
            set { userName = value; }
        }

        private string userEmail;

        [ColumnAttribute(DataType = "varchar", NotNull = true, Length = 100)]
        public string UserEmail
        {
            get { return userEmail; }
            set { userEmail = value; }
        }

        private string userPhone;

        [ColumnAttribute(DataType = "varchar", NotNull = false, Length = 30)]
        public string UserPhone
        {
            get { return userPhone; }
            set { userPhone = value; }
        }

        private bool isVisibility;

        [ColumnAttribute(DataType = "boolean", NotNull = false)]
        public bool IsVisibility
        {
            get { return isVisibility; }
            set { isVisibility = value; }
        }

        private DateTime lastedModify;

        [ColumnAttribute(DataType = "DateTime", NotNull = false)]
        public DateTime LastedModify
        {
            get { return lastedModify; }
            set { lastedModify = value; }
        }

        private User lastedUser;
        [ColumnAttribute(Name = "UserID", DataType = "bigint", NotNull = false, ForeinKey = true)]
        public User LastedUser
        {
            get { return lastedUser; }
            set { lastedUser = value; }
        }
        
    }
}
